package cn.imnaer.service.rpc.enums;

/**
 * 旅行类型(吃,住,玩)
 * Created by Administrator on 2015/5/6.
 */
public enum EnumScenicType {

    FOOD("FOOD", "FOOD"),
    STAY("STAY", "STAY"),
    FUN("FUN", "FUN");
    private String title;
    private String value;
    private EnumScenicType(String title, String value) {
        this.title = title;
        this.value = value;
    }

    /**
     * 解析值为当前枚举
     *
     * @param value
     * @return
     */
    public static EnumScenicType parseValue(String value) {
        return Enum.valueOf(EnumScenicType.class, value.toUpperCase());
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
